@extends('layouts.master')

@section('head')
	@parent
	<title>Register User</title>
@stop

@section('content')
	<div class ="container">
	<h1>Register</h1>
	<form role="form" method="post" action="{{ URL::route('postCreate') }}">
		<div class="form-group{{ ($errors->has('username')) ? ' has-error' : '' }}">
			<label for="username">Username: </label> 
			<input id="username" name="username" type="text" class="form-control">
			@if($errors->has('username'))
			{{ $errors->first('username') }}
			@endif
			
	</div>
	<div class="form-group{{ ($errors->has('pass1')) ? ' has-error' : '' }}">
			<label for="pass1">Password: </label>
			<input id="pass1" name="pass1" type="password" class="form-control">
			@if($errors->has('pass1'))
			{{ $errors->first('pass1') }}
			@endif
			
	</div>
	<div class="form-group{{ ($errors->has('pass2')) ? ' has-error' : '' }}">
			<label for="pass2">Confirm Password: </label>
			<input id="pass2" name="pass2" type="password" class="form-control">
				@if($errors->has('pass2'))
			{{ $errors->first('pass2') }}
			@endif
	</div>
	
	<div class="form-group{{ ($errors->has('firstname')) ? ' has-error' : '' }}">
			<label for="firstname">Firstname: </label>
			<input id="firstname" name="firstname" type="text" class="form-control">
			
				@if($errors->has('firstname'))
			{{ $errors->first('firstname') }}
			@endif
			
			</div>
	
	<div class="form-group{{ ($errors->has('lastname')) ? ' has-error' : '' }}">
			<label for="lastname">Lastname: </label>
			<input id="lastname" name="lastname" type="text" class="form-control">
	
					@if($errors->has('lastname'))
			{{ $errors->first('lastname') }}
			@endif
	</div>	
			
	<div class="form-group{{ ($errors->has('middlename')) ? ' has-error' : '' }}">
			<label for="middlename">Middlename: </label>
			<input id="middlename" name="middlename" type="text" class="form-control">
	
					@if($errors->has('middlename'))
			{{ $errors->first('middlename') }}
			@endif
	</div>	
	
	
	
	<div class="form-group{{ ($errors->has('address')) ? ' has-error' : '' }}">
			<label for="address">Address: </label>
			<input id="address" name="address" type="text" class="form-control">
	
		@if($errors->has('address'))
			{{ $errors->first('address') }}
			@endif
	</div>	
	
		<div class="form-group{{ ($errors->has('birthday')) ? ' has-error' : '' }}">
			<label for="birthday">Birthday: </label>
			<input id="birthday" name="birthday" type="date" class="form-control">
	
					@if($errors->has('birthday'))
			{{ $errors->first('birthday') }}
			@endif
	</div>	
	
		<div class="form-group{{ ($errors->has('contact')) ? ' has-error' : '' }}">
			<label for="contact">Contact No: </label>
			<input id="contact" name="contact" type="text" class="form-control">
	
					@if($errors->has('contact'))
			{{ $errors->first('contact') }}
			@endif
	</div>	
	
		<div class="form-group">
			<label for="email">Email: </label>
			<input id="email" name="email" type="text" class="form-control">
	
		</div>	
			
	{{ Form::token() }}
	<div class="form-group">
		<input type="submit" value="Register" class="btn btn-default">
	</form>
	</div>
@stop

